<!DOCTYPE html>
<html ng-app=''>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script src="angular.js"></script>
  </head>
  <body ng-init='arr=[12,5,8]'>
    <ul>
      <li ng-repeat='(index,val) in arr'>{{index}}, {{val}}</li>
    </ul>
    <ul>
      <li ng-repeat='val in arr'>{{$index}},{{val}}</li>
    </ul>
  </body>
</html>
